package com.kaibes.platform.article;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import com.kaibes.web.json.JsonConfig;

@Configuration
public class ArticleConfig implements InitializingBean {

	@Autowired
	private JsonConfig jsonConfig;

	@Override
	public void afterPropertiesSet() throws Exception {
		jsonConfig.addXssIgnore("content");
		jsonConfig.addXssIgnore("thumbnail");
	}
	
}
